Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-ssh

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-ssh

Check if an input value is a ssh url or not.

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.2M
decreased by-39.38%
Maintainers
1
Weekly downloads
 
Created

What is is-ssh?

The is-ssh npm package is designed to check if a given string is a valid SSH URL. It can be used to validate SSH URLs in various applications, ensuring that the URLs conform to the expected format for SSH connections. This can be particularly useful in applications that deal with remote server management, deployment scripts, or any scenario where SSH URLs are handled programmatically.

What are is-ssh's main functionalities?

Validate SSH URL

This feature allows you to check if a given string is a valid SSH URL. The function returns true if the string is a valid SSH URL, otherwise, it returns false. This is useful for validating user input, configuration settings, or any data that is expected to be in the form of an SSH URL.

"const isSSH = require('is-ssh');

console.log(isSSH('git@github.com:user/repo.git')); // true
console.log(isSSH('https://github.com/user/repo.git')); // false"

Other packages similar to is-ssh

Keywords

FAQs

Package last updated on 27 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc